package com.d3works.apps.stock.exception;

import com.d3works.apps.stock.db.LogisticalForm;
import com.d3works.apps.stock.db.LogisticalFormLine;
import com.d3works.exception.D3worksException;
import com.d3works.exception.db.repo.TraceBackRepository;

public class LogisticalFormError extends D3worksException {

  private static final long serialVersionUID = 354779411257144849L;

  public LogisticalFormError(LogisticalForm logisticalForm, String message) {
    super(logisticalForm, TraceBackRepository.CATEGORY_CONFIGURATION_ERROR, message);
  }

  public LogisticalFormError(
      LogisticalFormLine logisticalFormLine, String message, Object... messageArgs) {
    super(
        logisticalFormLine,
        TraceBackRepository.CATEGORY_CONFIGURATION_ERROR,
        String.format(message, messageArgs));
  }
}
